<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="" id="app">
        <div>{{msg}}</div>
        <div>{{obj.name}}</div>
        <div>{{obj.age}}</div>
    </div>
    <script src="https://unpkg.com/vue@3.5.12/dist/vue.global.js"></script>
    <script>
        const {createApp,ref} =  Vue
        createApp({
            setup() {
                const msg = ref('zhangsan')
                const obj = ref({
                    name:'dog',
                    age:12
                })
                return {msg,obj}
            }
        }).mount('#app')
    </script>
</body>
</html>